<admintpl file="apiheader"/>
<title>兑换提交</title>
<body class="J_scroll_fixed" onselectstart="return true">
<style>
	.wrap{padding: 0 20px;margin-top: 50px;}
	span{color: red;}
	.navbar-fixed-top{
		margin-right: 0px;
		margin-left: 0px;
		position: fixed;
		right: 0;
		left: 0;
		z-index: 1030;
		margin-bottom: 0;
	}
	.navbar {
		background: #FFFFFF;
		-webkit-box-shadow: 0 1px 1px 0 rgba(50,50,50,0.08);
		-moz-box-shadow: 0 1px 1px 0 rgba(50,50,50,0.08);
		box-shadow: 0 1px 1px 0 rgba(50,50,50,0.08);
		top: 0;
		overflow: visible;
	}
	h5{
		margin:10px 20px;
	}
</style>
    <div class="navbar navbar-fixed-top">
    	<h5>兑换提交<a style="float: right;"href="{:U('Convert/detail',array('userid'=>$userid,'exchid'=>$exchid))}">返回</a></h5>
    </div>
<div class="wrap J_check_wrap">
    <div class="common-form">
    <form method="post" class="form-horizontal J_ajaxForm" action="{:U('Convert/order_post')}">
      <div class="table_list">
        <table cellpadding="2" cellspacing="2" width="100%" class="table table-hover">
          <tbody>
            <tr>
            	<td width="50">Tips</td>
            	<td><input type="hidden" name="userid" value="{$userid}" />
            		<input type="hidden" name="exchid" value="{$exchid}" />
            		<input type="hidden" name="shopid" value="{$shopid}" />
            		修改信息请在APP个人资料处</td>
            </tr>
            <tr>
            	<td>收货人</td>
            	<td>
				<b class='emoji'>
					<php>
						echo preg_replace_callback ( '/@E(.{6}==)/', function ($b) {
							return base64_decode ( $b [1] );
						},$users['nickname']);
					</php>
				</b></td>
            </tr>
            <tr>
            	<td>联系电话</td>
            	<td><input type="hidden" name="telephone" value="{$contacts.telephone}" />
				<b>
				   	<if condition="$contacts['telephone'] != null">
            			{$contacts.telephone}
            		<else />
            			请前往用户资料处完善手机号。
					</if>
            	</b></td>
            </tr>
            <tr>
            	<td>收货地址</td>
            	<td><input type="hidden" name="street1" value="{$contacts.street1}" />
				<b>
				   	<if condition="$contacts['street1'] != null">
            			{$contacts.street1}
            		<else />
            			请前往用户资料处完善收货地址。
					</if>
            	</b></td>
            </tr>
            <tr>
            	<td>商品名称</td>
            	<td><b>{$iteminfos.itemDesc}</b></td>
            </tr>
			<if condition="$exchanges['point_level']">
          	<tr>
            	<td>所属用户</td>
		        <td><foreach name="typeconfigs" item="config">
			        <if condition="$config['typeID'] eq $exchanges['point_level']">
			        	<input type="hidden" name="typeID" value="{$config.typeID}" />
						<a href="{:U('Convert/level',array('userid'=>$userid,'exchid'=>$exchid))}">→ <b>{$config.typeName}</b> 专享商品 ←</a>
					</if>
		        </foreach></td>
          	</tr>
			</if>
            <tr>
            	<td>剩余数量</td>
            	<td><b>{$exchanges['cnt']-$exchanges['uses']}</b></td>
            </tr>
            <tr>
            	<td>商品属性</td>
            	<td style="padding: 0;vertical-align: middle">
					<select name="colorsize" class="normal_select" style="width:100%;">
				   	<if condition="$property">
						<foreach name="property" item="prop">
							<option value='{$prop.id}'>{$prop.itemColor} - {$prop.itemSize}</option>
						</foreach>
            		<else />
						<option value='0'>暂无库存</option>
					</if>
					</select>
            	</td>
            </tr>
            <tr>
            	<td>订单备注</td>
            	<td style="padding: 0;vertical-align: middle"><input type="text" name="description"style="width: 94%;"/></td>
            </tr>
            <tr>
            	<td>消耗球币</td>
            	<td><input type="hidden" name="itemtype" value="{$exchanges.itemtype}" />
            		<input type="hidden" name="points" value="{$exchanges.points}" />
            		<b>{$exchanges.points}</b>
            	</td>
            </tr>
            <tr>
            	<td>可用球币</td>
            	<td><input type="hidden" name="currency" value="{$currency}" />
            		<b>{$currency}</b>
            	</td>
            </tr>
          </tbody>
        </table>
	        <button type="submit" class="btn btn-primary btn_submit  J_ajax_submit_btn">提交</button>
	        <button type="button" class="btn" onclick="javascript:history.go(-1);">返回</button>
      </div>
    </form>
    </div>
  </div>
<script>
function stop(){
return false;
}
document.oncontextmenu=stop;
$('.emoji').emoji();
</script>
<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
</body>
</html>